﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using EpiNEXT.Services.Fields.Properties;

namespace EpiNEXT.Services.Fields
{
    //[Serializable()]
    public class CheckBoxField : DataField, IInputField
    {
        public CheckBoxField()
            : base()
        {
            PromptFontSize = Constants.DEFAULT_PROMPT_FONT_SIZE;
            PromptForegroundColor = new Color(255, 51, 51, 51);
            PromptWidth = Double.NaN;
            IsThreeState = false;
            DefaultValue = false;
        }

        [XmlElement]
        public bool IsThreeState { get; set; }

        [XmlElement]
        public bool? DefaultValue { get; set; }

        /// <summary>
        /// The .NET data type for this field
        /// </summary>
        public string DataType { get { return "System.Boolean"; } }
    }
}
